﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pont
{
    class Program
    {
        static void Main(string[] args)
        {
            Client client1 = new Client();

            Console.WriteLine("Randomizer vraiment super rapide ! \n");

            Random random = new RandomAffinee();

            random.Valeur = 43;
            random.RandomMethod = new CSharpRandom();
            client1.ListeRandom.Add(random);

            random = new RandomAffinee();
            random.Valeur = 76;
            random.RandomMethod = new MonRandom();
            client1.ListeRandom.Add(random);

            random = new RandomAffinee();
            random.Valeur = 34;
            random.RandomMethod = new MonRandom();
            client1.ListeRandom.Add(random);

            random = new RandomAffinee();
            random.Valeur = 12;
            random.RandomMethod = new CSharpRandom();
            client1.ListeRandom.Add(random);

            foreach (Random rand in client1.ListeRandom)
            {
                Console.WriteLine(String.Format("Valeur: {0}\nNom de la méthode:{1}\nNombre aléatoire: {2}\n\n", rand.Valeur, rand.NomRandomMethod, rand.Generer()));
            }

            Console.ReadLine();
        }
    }
}
